package dto

import (
	"phoenix/gin_web/model"
)

type UserDto struct {
	Name string `json:"name"`
	Telephone string `json:"telephone"`
}

func ToUserDao(user *model.User) *UserDto {
	return &UserDto{
		Name: user.Name,
		Telephone: user.Telephone,
	}
}